<div class="lottery-page" style="background: url(<%= theme.backgroundImg %>) no-repeat 0 0;background-size: 100% 100%;">
   <div class="active-banner">
	   	<div class="actTitle">
	      <p class="childTitle"><%= theme.childTitle %></p>
	      <p class="subTitle"><%= theme.subTitle %></p>
	    </div>
	   	<div class="surplus-times">
			 今天还剩 <span node-name="times"><%= data.usertodayleft %></span> 次抽奖机会
	   	</div>	   
   </div>
   <div class="turntable" id="lottery">
      <div class="lottery-row">
		 <% [0,1,2].forEach(function(item){ %>
				<% if (data.prizelist[item]) { %>
				 <div class="lottery-item">
					<div class="lottery-unit" data-index="<%= item %>" data-id="<%= data.prizelist[item].id %>">
						<div class="ticket-img" style="background-image:url(<%= data.prizelist[item].img %>);"></div>
						<div class="ticket-title"><%= data.prizelist[item].title %></div>
					</div>
				 </div>
				 <% }else{ %>
				 <div class="lottery-item"><div class="lottery-unit"   data-index="<%= item %>" ></div></div>
				 <% } %>
		  <% }) %> 
	  </div>
      <div class="lottery-row">
		 <% [7,9,3].forEach(function(item){ %>
				<% if (item==9) { %>
					 <div class="lottery-item">
					 <% if (data.actStatus=="3") { %>
					    <div class="lottery-start disabled" node-name="start" disabled="disabled">未开始</div>					  
					  <% }else if(data.actStatus=="5"){ %>
						<div class="lottery-start disabled" node-name="start" disabled="disabled">已结束</div>
					  <% }else if(data.usertodayleft==0){ %>
						<div class="lottery-start disabled" node-name="start" disabled="disabled"></div>
					  <% }else{ %>
							<div class="lottery-start" node-name="start"></div>
					  <% } %>						
					 </div>
			     <% }else if(item==7 && data.prizelist[6]){ %>
					 <div class="lottery-item">
						<div class="lottery-unit" data-index="7" data-id="<%= data.prizelist[6].id %>">
							<div class="ticket-img" style="background-image:url(<%= data.prizelist[6].img %>);"></div>
							<div class="ticket-title"><%= data.prizelist[6].title %></div>
						</div>
					 </div>
				 <% }else if(data.prizelist[item]){ %>
					 <div class="lottery-item">
						<div class="lottery-unit" data-index="<%= item %>" data-id="<%= data.prizelist[item].id %>">
							<div class="ticket-img" style="background-image:url(<%= data.prizelist[item].img %>);"></div>
							<div class="ticket-title"><%= data.prizelist[item].title %></div>
						</div>
					 </div>
				 <% }else{ %>
				    <div class="lottery-item"><div class="lottery-unit" data-index="<%= item %>"></div></div>
				 <% } %>
		  <% }) %> 
	  </div>
      <div class="lottery-row">
		 <% [6,8,4].forEach(function(item){ %>
				<% if (item==8 && data.prizelist[7]) { %>
					 <div class="lottery-item">
						 <div class="lottery-unit" data-index="5" data-id="<%= data.prizelist[7].id %>">
							<div class="ticket-img" style="background-image:url(<%= data.prizelist[7].img %>);"></div>
							<div class="ticket-title"><%= data.prizelist[7].title %></div>
						 </div>
					 </div>
			     <% }else if(item==6 && data.prizelist[5]){ %>
					 <div class="lottery-item">
						<div class="lottery-unit" data-index="6" data-id="<%= data.prizelist[5].id %>">
							<div class="ticket-img" style="background-image:url(<%= data.prizelist[5].img %>);"></div>
							<div class="ticket-title"><%= data.prizelist[5].title %></div>
						</div>
					 </div>
				 <% }else if(data.prizelist[item]){ %>
					 <div class="lottery-item">
						<div class="lottery-unit" data-index="<%= item %>" data-id="<%= data.prizelist[item].id %>">
							<div class="ticket-img" style="background-image:url(<%= data.prizelist[item].img %>);"></div>
							<div class="ticket-title"><%= data.prizelist[item].title %></div>
						</div>
					 </div>
				 <% }else{ %>
				    <div class="lottery-item"><div class="lottery-unit" data-index="<%= item %>"></div></div>
				 <% } %>
		  <% }) %> 
	  </div>
   </div>
   <div class="btns-box">
      <div class="lottery-btn"><button type="button" data-link="<%= data.url.myPrizelist %>" node-name="mylottery">我的奖品</button></div>
      <div class="share-btn"><button type="button" node-name="sharelottery">分享活动</button></div>
   </div>
   <div class="regular" node-name="regular">规则</div>
   <div class="activity-rules collapse" node-name="viewrules">
      <div class="rules-title">活动规则</div>
	  <div class="rules-content">
	  	<% theme.desc.forEach(function(item,index){ %>
			<p><%= item %>。</p>
		<% }) %>
      </div>
   </div>   
   <div class="win-layer" node-name="winlayer"></div>   
</div>
<div class="sharetip" node-name="sharetip"><div class="share-icon"></div></div>